package org.sgx.gwtsjcltest.client.webcrypt.ui;

import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Widget;

public class MainLayout extends Composite {

	private static MainLayoutUiBinder uiBinder = GWT.create(MainLayoutUiBinder.class);

	interface MainLayoutUiBinder extends UiBinder<Widget, MainLayout> {
	}
	
	private static MainLayout instance;

	public static MainLayout getInstance() {
		if (instance == null)
			instance = new MainLayout();
		return instance;
	}

	@UiField Menu menu; 
	@UiField Body body; 
	
	private MainLayout() {
		initWidget(uiBinder.createAndBindUi(this));
	}
	
	public Body getBody() {
		return body;
	}
	
	public Menu getMenu() {
		return menu;
	}

}
